//
//  MyDataTableViewController.m
//  ZhuoxinAgriculture
//
//  Created by maxine on 2016/11/9.
//  Copyright © 2016年 KKING. All rights reserved.
//

#import "MyDataTableViewController.h"
#import "ZXDetailTableViewCell.h"

@interface MyDataTableViewController ()

@end

@implementation MyDataTableViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"我的资料";
    self.tableView.rowHeight = 55;
    
    self.tableView.backgroundColor = [UIColor colorWithRed:245/255.0 green:245/255.0 blue:245/255.0 alpha:1];
    

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Table view data source
    
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}
    
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 2;
}
    
    
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    //创建cell
    ZXDetailTableViewCell *cell = [ZXDetailTableViewCell cellWithTableView:tableView];
    switch (indexPath.row) {
        case 0:
        cell.titleLable.text = @"姓名";
        cell.detailLable.text = @"李达";
        break;
        case 1:
        cell.titleLable.text = @"手机号码";
        cell.detailLable.text = @"1354845849";
        
        break;

        default:
        break;
    }
    
    return cell;
    
}
    


@end
